<!DOCTYPE html>
<!-- 
Template Name: Metronic - Responsive Admin Dashboard Template build with Twitter Bootstrap 3.1.1
Version: 2.0.2
Author: KeenThemes
Website: http://www.keenthemes.com/
Contact: support@keenthemes.com
Purchase: http://themeforest.net/item/metronic-responsive-admin-dashboard-template/4021469?ref=keenthemes
License: You must have a valid license purchased only from themeforest(the above link) in order to legally use the theme for your project.
-->
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<!--<![endif]-->
<!-- BEGIN HEAD -->
<!-- BEGIN BODY -->
<body class="page-header-fixed">
<!-- BEGIN CONTAINER -->
	<!-- BEGIN CONTENT -->
		<!--表格操作按钮组-->
		<div>
			<span>系统当前状态：
				<span ng-class=" {'back_green': sysState==1, 'bg_red':sysState !=1}" 
						   ng-bind="sysState | getValueInStaticFilter : 'sysStateArray'" >
				 </span>
			 </span>&nbsp;&nbsp;&nbsp;&nbsp;
			<span>系统会计日期：<span ng-bind="accountingDate |date:'yyyy-MM-dd' "></span></span>
		</div>
			<table class="table table-striped table-bordered table-hover" id="table_1">
			<thead>
				<tr>
					<th>job编码</th>
					<th>job名称</th>
					<th>当前状态</th>
					<th>执行状态</th>
					<th>互斥任务</th>
					<th>最后执行时间</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				<tr class="odd gradeX" ng-repeat="job in jobList track by $index" on-loaded="{{$last}}" target-table="table_1">
					<td>
						<span ng-bind="job.jobCode"></span>
					</td>
					<td>
						<span ng-bind="job.jobName"></span>
					</td>
					<td>
						<span ng-bind="job.status | getValueInStaticFilter : 'jobStateArray'"></span>
					</td>
					<td>
						<span ng-bind="job.stateCode | getValueInStaticFilter : 'sysStateArray'"></span>
					</td>
					<td>
						<span ng-bind="job.mutexCode"></span>
					</td>
					<td>
						<span ng-bind="job.lastRunTime |date:'yyyy-MM-dd HH:mm:ss'"></span>
					</td>
					<td>
						<a class="btn" href="javascript:;"  ng-click="exeJob(job.jobCode,job.stateCode)"  ng-show=" sysState==job.stateCode">执行</a>
					</td>
				</tr>
			</tbody>
			</table>
		
		
		

</div>
	<!-- END CONTENT -->

<!-- END CONTAINER -->

<!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->
<!-- BEGIN CORE PLUGINS -->



</body>
<!-- END BODY -->
</html>
<script src="manageView/assets/scripts/public.js" type="text/javascript"></script>
<script>

// setTimeout(function(){

// var tablesOption = new datatablesFunc();
//         var table1 = $('#table_1');
//         var tb1 = table1.DataTable(tablesOption);
//         table1.bTableAll();
//         $("#table_1_filter input")
//   .unbind(
//         'keyup.DT search.DT input.DT paste.DT cut.DT'
//       )
//       .unbind( 'keypress.DT').attr("ng-keyup","searchModle();")
//       .attr("ng-model","searchInput");
// }, 3000);

</script>